Fixed issues with scope caused by declaring axLoading as a function. Fixed other various bugs caused by the initial migration.