Cleaned up, added example usage.