Solving compile errors