Corrected buffer initialisation properly this time ಠ_ಠ