Added custom track writing.