Added functions/ improved logic for duration and user checking for spying (didn't work at night, forgot to commit :P)