Isolate Fog interaction into resources, fixes #12