Refactor to use Fog security credentials method.