Source code to extract data