Peer reviewed and modified with sed suggestion