Added James code