Removed most of compiler warnings.