Thank you. Hope you are doing well.
Mario, I had missed pasting two lines from my source code. The two lines have been pasted above Sr. No. 9 in this post. The 'opt_strike' is defined there.
Thank you for pointing out. Please let me know if your error is gettign resolved after adding these two lines of code.