Making the fucntions work completely web-based.