Changed GUI to only take necessary parameters