Added a lock checkbox and rewrote some logic using a filter