Add wait for TTL pulse