In granting a variance a zoning administrator may impose such conditions as necessary to protect the public health, safety or welfare, and to assure compliance with the objectives of the master plan, in accordance with the purpose and intent of the zoning ordinance.