Added --formats option to build command