Added customisable priority, added person detection