Get the security layer into the right place