Draft of normalization routine