Now using isDefinable
Fixed indentation
Removed AssignValue call