I removed these methods in light of changing $mode back to non-static.