Fixed bug in function to get factory menu; return menu instead of True.
Fixed indents.