Cleaned up iterator usage
Don't leak handle, send message through data structure and generate message string