Fixed the un-used imports and formatted.