Added methods to preprocessing class