Eric did this part. Don't know exactly how it works