Updated to check to see if required before building