Added helpful code from Kulkarni

Thank god he is a awesome teacher.