User code for data handling