added in a lock delay feature (it is not infinity, but does create a bit of a lock delay to work with from movement)