Added new parameter logVisible to register function
Minor fixes.