Fixed a syntax error since I can't spell function