Added commit to middleware
Merged