Tweaked postactivate script.