Now with working middleware, less printing