Fixed problem with the remove query
Added random pause