Adding project lookup middleware