Moved frand to helpers.