Adding ability for page loader to inject functions.