(probably) working version.