Wrote another quickie function in spare time.