Make it possible to resize buffer and flip moar bits