Guard against incorrect input