Added some constants, and changed error message to use a Toast.