Improved hide and unhide commands.
CallMethod skips the waiting completely when timeout < 1