Added code

Copied Xander's code for testing purposes