Updated flags to properly filter them out.
Add check to see if the flags buffer option was populated.
Bumped up Ruby version.