Move all commands to self. variables

Allows changing if you don't run this as a script.