Your needs are inter-related...

...shouldn't the solution be as well?