Moved BufferChangeWithSkip() and related functions to own file.