Deleted some functions to simplify the first checks