Modification to sigmoid functionality.