Hardening and syntax fix

Signed-off-by: Sunstrike <sunstrike@azurenode.net>