Added code for parsing replciates