SECURITY Upgraded rails