Add function for getting source data