Print PIDs
Fix issue with empty input