Further changes to custom_commands

Particularly to hide_object_layers