Auto add and commit after pac man operations