Added ability to update instance flags