Split into files in view of using AMD