Removed superfluous static variable, cleaned up comments.