Added compilation hook so that buffer always is on bottom