Added new edge rectangle function