Use Activity in layers.py