Made packMain a task
Added packMainDiscovered task