-lots of misc. WIP. Patch locking mechanism started.