Added version protection for 4.0.4 and before