Stupid bug for mistyping variable name.
Remove unncessary code.