Working on intervalometer code