Code cleaning. Added destroy method