Added rescue end block