Revert "Adds commit function"

This reverts commit 7836f4e4dafba2ccb2c83a37865a61cac1efe1ec.