Updated inset logic