Added basic implementation of security system.