Contains Dan's Custom Code