Implement app.use function