Added AMEngine login redirect to load and run functions.