Code for Zahid to copy.