Nearly perfect version