Added possibility to read poses from file.