This would help things like when a student goes to bathroom at the end of a period then goes to the next class and tries to go again right away.