Implemented buf module.