Basic preprocessing tools