Added fail res sample code