Tiny lock and hashing implemented