Load and call functions when code is required