srand added.