Enabled setting of theta in main