Function version complete. Ready for heroku