Added maskall function