Fixed debugging time and some warnings