Cleaned Code by Trees :)