Check also all functions prior to avoid and allow better error recovering