Adding in sytax checking.