Added buffer and library implementations.