Added hideMask option