Implemented block/ unblock functionality