Adding locks