Modified parsing rules so that can only declare one endpoint if want.