Initialise global environment with basic functions.