Fix NameError
Remove print statement related to debugging
Remove timer