Added flag for un-cleared transaction. Closes #18.