Split out util functions into separate file.
Remove alert() on success.