Changed the middleware from relation to real_time