Removed code duplication: saved about 500bytes of flash.