Rewritten to use hedtek resources