But there's probably a more elegant way to achieve the same, any thoughts?