Finish code, tuning