Chosen cloud final code + main which doesn't work...