De-crazy part of the code.