Fixed bug where flag was not set
Fixed issue #31 by adding a new table keeping track of payments