Removed redundant code in building command