Implemented dynamic security check