Added Exceptions to optimization variables