Added returns for gaussian fit