flexibly

adverb
  1. in a way that is able to bend or change easily without breaking
  2. in a way that is willing to change or compromise

Examples