Slicing out the required data