Fixed 500 error when list_display was a list instead of a tuple
Correct setTimeout to setInterval
hasLock needs to be set to false if the user loses the lock
Changed variable name for clarity