Final version. All working!!!!