Protecting from bots

We are now checking for the duration variable and if it's not there we should be throwing an error.