Added environment file
Turn keyfy into an anonymous function