Start porting DJ code