Include class before executing define resource
Added priority for user specification filenames