Added a bit of debug in sigmoid