Add getLong and missing synchronizations
Add methods around committing