Added some basic functionality (take a picture for the given interval)