Added preprocessing