Updpated with working text grabbing