Finally got a chance to back port =P