Made some arguments flags instead of optional arguments which need values
Added an optional argument that determines how often the face checks are made
Added check between frequency and time until lock, to  ensure that the former is not grater than the latter