Compile-time errors resolved