Corrected revisions for shorten and secure_permissions