First version, unusable
Added flexes.