Made add() work for both lof and light_lof

Fixes #656.