Thanks to Aleksey for the input!