Adds log method

ah good point