Some extensions for rect.el