added verbose argument to function to remove loader bar