Compiling and Working now[Still needs further testing to be 100% sure]