Add allow_resource - closes #5