DJR:Added main wrapper functions