Added ability to change interval