Tweaks to remove synchronous createBuffer() call.