Declare variables, add error check to isResponsive.