Finally finished. Supports up to 9 locks.

Finally finished. Supports up to 9 locks.