Opening and closing programmes