Replace sal_init with Tim's earlier code