Changed map layers
remove unused sleep function