Added if statements within the Convert Button so the first algorithm can be integrated into the GUI