Dehydration code completed, fixed orientation issue