Add Load directive function