Load buffer instead of loading from file