Implemented the splitting in initialize_sources