Attempted to add encryption functionality, not working