Added generic cross method for q4.