Created initial buffer manipulating functions