Added options to set fadeIn and fadeOut speeds