Switched to Jins solution.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>