Changed to passing id rather than data