Updating engine
Updating middleware
Updating main to new syntax for resources