Added compatibility with express 4.0