A building permit is required when any substantial alteration is proposed.