Added an input prevention mechanic.