Modified the intent setting up method, corrected failure message