Okay... finally back to actually writing this code, not done yet... might be able to work really inefficiently though.