Removed redundant flatlands code