Adding API for shapes.