Added checks for mapcode syntax checking