Working version which searches google automatically