Adding spectrum ls functions.