Security improvements, checkRequirements implemented