Doh! in my zeal to refactor the code missed passing the activity parameter.. will fix it