Added initial code to get trading working