Improved direction and minor syntax errors