Can now receive Index payload
Flake8
Fix tests