Code almost freezed