Add locking support for Jalo function
Dim Encoder started