Passing the $data object into the loadNext function, ensuring that the chain happens.