Added layer calculating functions for a Mobile's shadow.