Some refactor to command, so i can use util method later