Set asset states properly. Add CheckAsset prototype

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>