Some buggy prototype-ish code for trash.