Cleaned code: DataModule now uses split method