FRL code and examples