Buffer allocation & recording
Bugfixes