Starting middleware implementation