Fixed issue where interaction was not defined. Unified formatting (it was using spaces in some places before and tabs elsewhere).