Introduced logging to pwn() by replacing all prints