Added spectrum functions