Magnolia scripts that might be useful for others as well.