Started writing reference server. Distinguished between buffer created and newly created stacks.