Added function struct to hold input module