Refactored out stack-alloc library reference.