Added logs to some methods in here.