Added command handling. Fixes #1