This is not a very impressive function, but it'll save me from having to write it again in the future.