Updated imput functions.