Changed some syntax errors to make things work correctly