Adding clone method and fixing parameterless attr() call.