Modify get datasource method.