added timed mode