Fixed several commands that were previously failing. Whole document now executes perfectly.