Adding some utility functions for computing the shadows, unfinished