Added parse function

Signed-off-by: KaYon <prodigyvlad@gmail.com>