How to call SPL in applications