Add before scope which acts as a pagination