Use assign statements, fix syntax error