Removed eval for creatring accessor function. Now create using new Function