Initially hacked version.