Now uses Int for level instead of double for sepdist