Removed generic code, used static string instead of I/O