Move constructor to top of file