-- small refactoriong.
-- add module Resource.