Cleaner but still buggy execution of sigmoid function