Handle input as object