Found better way to attach to input