Refactored pointers functionallity to its own file