Rewrite Sonic Model To Optimize Speed