If you are looking for a solution and want to understand the pitfalls, you can find the information here