Fixing "clear" and extracting methods