Add interval value and set first if statement 

Passing down interval value needs work until then hard code one to stop ```TypeError: a float is required``` error.

Fix starting if statement.