Updating some of the security stuff and adding a basic security helper
class.