Working derpy version of code.