Add resample, initialize, and normalize functions