Added Legend prelim codes