Change message sent depending on lock state