Clean up select loop