Nit, Please initial the local vars with |null|.