Predispatch method changed to return the $data variable rather than call dispatch