Adds command button support.

Fixes issue #12.