Made code compilable