Changing from static file handling to dynamic

More secure, not as quirky