Added option to loop for logins at specified timeouts