Look at email for explanation. Not working completely.