Added functions for sigmoid with offsets.