Removed unused imports and suppressed serial warnings