Changed the way the parse_chmod() function is called.