Added if statement for architecture