First try for preprocessing