Add flex

See tin for details.