Move spark import to the end.