Input add functionality