Checks whether required flags are set or not. Fixes #6.