Added helper function and gui start