Removed erroneous message; fixed warnings