Removed init_globals() call - globals are now passed directly.
New module version.