Fixed everything. Closed form working.