Added utilities.r