Replaced classic javascript array with Buffer