And he did what was right in the eyes of the LORD, but not wholeheartedly.