Changed all references of plane to sub