The difference between add_resource and the resource statement is that the latter makes the resource available at compile time, while add_resource is for run time only. Hope this makes sense.