Updated to not make gui unless specified