Made it so buffer is shared with new state after transition