Added errors and warnings for compiler.