Implemented trigger and clear commands