Changed main to call functions over rebuilding wheel