Added Sekio's code.