Quick and dirty version 1.0.