Initial commit, some ugly code