Functions now read from userinput