Updated the cow file for looping only once.