implemented register, capture, and blink.