Extracting security to different module.