Cleaned up incorrect indentations and a few missing lines in new getInterface function