Added Rest funtionality