Added packet input to stash(); PIR/motion rework