Resource as argument

Issue #6.