Actually working code in darkPhoton. Sorry Eyvind.