Fixed Error Handling. Added DeleteAllAttributes method.