Prepare buffer for contacts