Allow globals and functions to be set in options