Fixed milisecond bug, fixed some reg decls