Moved usage function to main because it implementation specific.