Started converting to typescript.