Added function for quickAdd button.