Working version with bad comments