Create function to source a resource
use builtin function to set variable