Changed setup functions to return the result to be increase the decloupe degree.