Added fweakout function

Added fweakout function